const { resolve } = require('path');
const webpack = require('webpack');

module.exports = {
    mode: 'production',
    entry: {
        React: 'react',
        ReactDOM: 'react-dom'
    },
    output: {
        filename: '[name].js',
        path: resolve(__dirname, 'dll'),
        library: '[name]'
    },
    plugins: [
        new webpack.DllPlugin({
            name: '[name]',
            path: resolve(__dirname, './dll/manifest.json')
        })
    ]
}